import { Component, OnInit } from '@angular/core';
import {CompDataService} from "../comp-di/comp-di.component";

@Component({
  selector: 'app-comp-di-child',
  template: `
    <p>
      comp-di-child works!
    </p>
  `,
  styles: [
  ]
})
export class CompDiChildComponent implements OnInit {

  constructor(private diSvc: CompDataService) { }

  ngOnInit(): void {
    console.log('di child component ' + this.diSvc.id)
  }

}
